﻿<%@ Page Title="" Language="C#" MasterPageFile="" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

        <table>
            <tr>
            <th>Nome</th>
            <th>Numero foto</th>
            <th>Modifica</th>
            <th>Elimina</th>
            </tr>
            <% foreach (var album in (List<MvcSite.Models.Album>)ViewData["ListAlbum"])
               {
                   %>
                   <tr><td id="AbumName">
                   <%= album.Nome %>
                   </td>
                   <td align="center">
                   <%= album.N_Foto %>
                   </td>
                   <td class="modifica">
                   <%: Html.ActionLink("Modifica", "ModifyAlbum", "Album", new { id = album.Id}, null)%>
                   </td>
                   <td class="elimina_button">
                   <a href="#" onclick = "elimina('<%=  album.Id %>')">Elimina</a>
                   </td>
                   </tr>
                   <%
               }     
            %>
	    </table>
        
        